How to set up admin settings in plugin

401 means its hitting the route correctly but is not authorised