Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix empty middlewares for sub routers #928

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

rawdaGastan
Copy link
Collaborator

Related Issues

Tested on farmerbot

  • auth middleware for power subroutes
$ cd ../poweroff && go run main.go
2024/03/07 12:44:58 you are not authorized for this action. your twin id is `81`, only the farm owner with twin id `164` is authorized
exit status 1

$ cd ../poweron && go run main.go
2024/03/07 12:45:05 you are not authorized for this action. your twin id is `81`, only the farm owner with twin id `164` is authorized
exit status 1

$ cd ../includenode && go run main.go
2024/03/07 12:45:19 you are not authorized for this action. your twin id is `81`, only the farm owner with twin id `164` is authorized
exit status 1
  • Tried version sub route and worked fine without the middleware
$ cd ../version && go run main.go
version: v0.14.11

@rawdaGastan rawdaGastan merged commit afa8ed6 into development Mar 7, 2024
190 checks passed
@rawdaGastan rawdaGastan deleted the developmen_fix_rmb_router_mw branch March 7, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants