Commit Graph
100 Commits
Author SHA1 Message Date
NanamiAdmin ef27e7e0a9 refactor(watchdog): remove tcp socket connection and add local unix sock connection 2026-05-10 14:38:52 +08:00
NanamiAdmin 9c684241d1 feat(watchdog): implement keepalive mechanism and enhance connection handling 2026-05-09 17:29:02 +08:00
NanamiAdmin 21a4b03c57 feat(watchdog): add auto boot up for watchdog progress 2026-05-09 15:30:03 +08:00
NanamiAdmin 898b67a24b fix: making sure all users can access all functions of all instances 2026-05-08 14:16:20 +08:00
NanamiAdmin a78e715293 refactor(instance): remove redundant instance ownership checks
The ownership validation is now handled at an earlier stage in the request processing, making these checks redundant. This change simplifies the code by removing duplicate validation logic.
2026-05-08 12:30:31 +08:00
NanamiAdmin 00319d790d chore: change service && filename rule to "superfrpc_instanceID" 2026-05-07 22:46:28 +08:00
NanamiAdmin 6e705ce2f3 fix: change permission level for instance listing to visitor and making sure all instances could be listed for all users 2026-05-07 21:38:52 +08:00
NanamiAdmin 9ffb4263cf feat(sys): add self-check functionality for system settings and frpc binary 2026-05-07 21:07:16 +08:00
NanamiAdmin 44195c9f26 style(service): modify package name "service" to "sys" 2026-05-07 19:28:49 +08:00
NanamiAdmin a0ef35627b feat(web): add static file serving and update API routes
- Implement embedded static file serving for frontend assets
- Update API routes to use '/api' prefix
- Add web handler for static file serving with proper content types
- Modify .gitignore and README to reflect new web/dist directory structure
2026-05-05 15:45:51 +08:00
NanamiAdmin cdeaa5bacc fix(user): replace 'user' type with 'visitor' in user creation
refactor(session): improve token expiration handling in GetTokenInfo

chore: add /dist to gitignore
2026-05-05 15:35:04 +08:00
NanamiAdmin a2869c1e0e fix(proxy): add "oldName" && "newName" paras to fix unable to modify proxy name 2026-05-05 12:52:04 +08:00
NanamiAdmin e72c142b16 fix(instance): add status verification after service operations
Add verification checks to ensure service is running/stopped after start/stop/restart operations
Fix import order and remove unnecessary whitespace
2026-05-05 12:31:59 +08:00
NanamiAdmin 20c906c8cc fix(settings): fill support for additional configuration options 2026-04-30 18:54:36 +08:00
NanamiAdmin d71672e40f docs: update API endpoint paths in documentation 2026-04-29 11:51:52 +08:00
NanamiAdmin b93c3b0e78 docs(api): update webhook configuration and add notification docs
- Simplify webhook headers and body configuration format
- Add documentation for available notification methods and parameters
2026-04-29 10:01:07 +08:00
NanamiAdmin 1432651a14 fix(watchdog): fix watchdog unable to send webhook and simplify the parsing of json config
- Change webhook config headers and body from map to string format
- Move command parsing logic to separate function in command.go
- Add debug logging for webhook operations
- Improve exception handling with proper JSON parsing
- Simplify config loading logic with default values
2026-04-28 20:48:54 +08:00
NanamiAdmin 8108d4d01f fix(watchdog): integrate instance management with watchdog
Add watchdog instance management in Start/StopInstanceHandler to sync with watchdog service
Add notification enabled check in exceptionHandle function
2026-04-28 19:50:52 +08:00
NanamiAdmin 0890c8136f feat(watchdog): add exception handling and webhook integration
- Implement exception handling in TCP client to process error messages
- Add webhook functionality to send notifications for exceptions
- Introduce utility functions for string parsing
- Update config with webhook template
2026-04-28 15:46:31 +08:00
NanamiAdmin ac51641e93 feat(settings): add settings management API endpoints
- Add GET /settings/get and POST /settings/set endpoints for managing system settings
- Implement config file persistence for settings changes
- Update config schema to include notification and webhook settings
- Add API documentation for new endpoints
- Move config path variables to global package for consistency
2026-04-23 12:43:11 +08:00
NanamiAdmin 489c37e095 refactor(global): move config to global package and consolidate handlers
- Move Config struct and related functions to global package
- Consolidate handler utilities into utils package
- Remove deprecated handlers and instance packages
- Add new handlers package with settings and proxy functionality
- Update config.json to include watchdog enabled flag
2026-04-22 19:52:33 +08:00
NanamiAdmin ddf91299e7 refactor: reorganize codebase into modular packages
feat(global): add global package for shared variables and types
refactor(handlers): move handlers to dedicated package and update imports
refactor(session): extract session management to separate package
refactor(config): move config handling to dedicated package
refactor(router): update route handlers to use new package structure
refactor(main): simplify main.go by moving logic to packages
2026-04-22 12:57:04 +08:00
NanamiAdmin df8df78bab refactor(config): improve config file handling and error messages
- Replace manual address formatting with net.JoinHostPort in tcpClient
- Simplify debug/error messages in IsInstanceRunning by removing redundant output
- Fix incorrect map reference for RunUser in CreateInstanceHandler
- Extract config file creation logic into handleConfigFileCreate
- Add auth_token to response data in GetInstanceInfoHandler
- Remove redundant AuthToken field from InstanceInfo struct
2026-04-21 18:39:11 +08:00
NanamiAdmin 3e3adf122c fix(instance): (systemd) fix when the instance is not running but the backend still says it's running 2026-04-21 18:00:39 +08:00
NanamiAdmin c978e5c6b4 refactor(instance): change IsInstanceRunning to return error instead of bool
Modify IsInstanceRunning function to return error for better error handling and status reporting. Update all related handler functions to properly check the error and set isRunning flag accordingly. Also adjust log levels for service status messages to be more appropriate.
2026-04-21 14:39:30 +08:00
NanamiAdmin 2426933f49 fix(watchdog): now the client could successfully send more msgs to watchdog instead of the only connection msg
- Add debug logging for watchdog operations
- Standardize message format for instance operations
- Improve TCP message handling with proper line termination
- Enhance error handling in watchdog operations
- Add proper cleanup of recvChan in sendMsg
- Update response handling in instance handlers
2026-04-07 23:29:07 +08:00
NanamiAdmin 37c10f1c07 feat(watchdog): improve watchdog instance tracking
- Add Close() function to watchdog for graceful shutdown
- Update instance message format for better consistency
- Add watchdog status tracking in StatusInfo
- Include watchdog field in FrpcInstance struct and database
- Change port fields from string to int in FrpcProxyInfo
- Add auth_token support in InstanceInfo
2026-04-05 22:44:53 +08:00
NanamiAdmin f006c2307a feat(user): assign superuser role to first registered user
Add logic to check if registering user is the first one and assign 'superuser' role instead of default 'visitor' role. This ensures proper initial admin setup for new deployments.
2026-04-04 11:53:51 +08:00
NanamiAdmin 671106d3bc style(database): change DBQueryUsers to DBListUsers 2026-04-04 11:49:59 +08:00
NanamiAdmin de6a8cdcb0 fix(watchdog): refactored tcp recvMsg function, now the watchdog can be connected correctly
- Refactor TCP message reading to use ReadBytes and TrimSpace for better reliability
- Add connection success logging in main.go
- Update .gitignore to include logs.db-journal
2026-04-02 22:22:44 +08:00
NanamiAdmin 78bd1cb3cc style: using is struct to handle all judgements global envs 2026-04-02 21:38:50 +08:00
NanamiAdmin aa22b04a1f feat(watchdog): add watchdog service with TCP client implementation
- Implement TCP client for watchdog service communication
- Add watchdog configuration in config.json
- Update main.go to initialize and connect to watchdog
- Add watchdog related functions (connect, command handling)
- Update README.md with new watchdog feature
- Improve route setup logging in router.go
2026-04-02 18:42:44 +08:00
NanamiAdmin c19bbfbca4 Merge branch 'main' of https://gitea.nanami.tech/Super-frpc/backend 2026-03-31 23:05:48 +08:00
NanamiAdmin 0e578c422f feat(proxy): add modify proxy API endpoint and functionality
Implement proxy modification feature including:
- New modifyFrpcProxy function in config.go
- New ModifyProxyHandler in frpcProxyAct.go
- New API endpoint in router.go
- Updated API documentation in docs/api.md
2026-03-31 23:04:43 +08:00
NanamiAdmin 1aaec45151 feat(proxy): add modify proxy API endpoint and functionality
Implement proxy modification feature including:
- New modifyFrpcProxy function in config.go
- New ModifyProxyHandler in frpcProxyAct.go
- New API endpoint in router.go
- Updated API documentation in docs/api.md
2026-03-31 23:03:51 +08:00
NanamiAdmin f4d742de04 feat(user): add user modification API and handler
implement user modification functionality including:
- new endpoint /userMgr/modify
- database update function DBUpdateUser
- request/response structures
- handler with proper authentication and validation
- updated API documentation
- marked as completed in README checklist
2026-03-31 21:52:15 +08:00
NanamiAdmin 4aa58b2f3d feat(user): add user type modification endpoint
- Implement new endpoint `/userMgr/modifyType` for updating user types
- Add database function DBUpdateUserType to handle type updates
- Include request validation and proper error handling
- Update API documentation with new endpoint details
2026-03-30 14:22:15 +08:00
NanamiAdmin 67bea968c6 chore: add Auth function to handle all permission verification; remove all old auth codes 2026-03-30 13:50:52 +08:00
NanamiAdmin 839bad3c94 feat(frpLogger): add real-time instance log streaming functionality
Implement cross-platform log streaming for frpc instances with support for Windows, systemd, and init.d systems. Includes WebSocket API endpoint for real-time log streaming, token validation, and instance ownership checks. Update README and API documentation to reflect new functionality.

The implementation handles:
- Platform-specific log collection (Windows Event Log, journalctl, log files)
- WebSocket-based real-time streaming
- Token validation and instance access control
- Log level parsing and formatting
- Historical log retrieval since service start
2026-03-26 17:46:50 +08:00
NanamiAdmin 61e4ad6ecc fix(os): improve service status checking reliability
- Handle specific exit codes for systemd services (inactive/unknown states)
- Add better error handling for init.d services
- Move string conversion before error checking for consistency
- Update log levels for better service state visibility
2026-03-26 16:20:21 +08:00
NanamiAdmin e83436fe9b feat(instanceMgr): add getInfo endpoint to retrieve instance details
Implement new GET endpoint `/frpcAct/instanceMgr/getInfo` to fetch frpc instance information
Add documentation for the new API endpoint in docs/api.md
The handler returns different information based on user permission level
2026-03-25 22:20:32 +08:00
NanamiAdmin 25f88249c2 refactor(api): simplify instance listing response and add running status
Remove sensitive information from instance listing response for all users and add isRunning field
Fix backend to prevent starting already running frpc instances
2026-03-25 21:50:52 +08:00
NanamiAdmin 92a0e24db7 refactor(frpc): restructure instance management and config handling
- Move instance-related structs and functions to config.go
- Remove serverAddr, serverPort, and authMethod from database schema
- Implement new config parsing and encoding with nested key support
- Update service management to use instanceID instead of username/name
- Add GetServiceNameByInstanceID helper function
- Update API documentation for auth.method field change
2026-03-25 20:00:34 +08:00
NanamiAdmin da729b44ff feat(service): add auto-start management for services
Implement setBootAtStart and removeBootAtStart functions to handle service auto-start configuration separately from service creation/removal. Update handlers to use these new functions for better control of boot behavior. The changes support Windows, systemd and init.d systems.
2026-03-25 11:05:17 +08:00
NanamiAdmin 3a00f5d6a5 refactor(instance): change instance deletion to use ID instead of name
- Update DBRemoveFrpcInstance to use instanceID for deletion
- Modify DeleteInstanceHandler to accept and validate instanceID
- Improve error messages for invalid instanceID format
- Update logging to use instanceID instead of instanceName
2026-03-25 10:49:30 +08:00
NanamiAdmin 802a726464 feat(frpAct): add Windows/Systemd/Init.d service boot control. BUT WINDOWS STILL HAS BUGS AND LINUX HAS NOT BEEN TESTED. 2026-03-24 23:23:34 +08:00
NanamiAdmin e335ce4da6 docs(api): update field names to use camelCase in API documentation 2026-03-23 22:14:04 +08:00
NanamiAdmin a3b8d59344 fix(addFrpcProxy): modify frpc toml config key to correct 2026-03-23 22:11:17 +08:00
NanamiAdmin 40d4ccaa8a feat(proxy): add endpoint to list proxy configurations
Implement new GET endpoint `/frpcAct/proxyMgr/list` to retrieve proxy configurations from frpc instance config files. Includes handler function, API documentation, and route setup. The endpoint validates user permissions, reads and parses the config file, and returns structured proxy data with instance information.
2026-03-21 08:57:44 +08:00
NanamiAdmin dcd2ae9bdc chore: remove binary database file from version control 2026-03-19 22:47:39 +08:00
NanamiAdmin 1ec3602ec1 docs(api): add delete proxy endpoint documentation
Add documentation for the new DELETE proxy endpoint including request/response formats, headers, and important notes about the operation.
2026-03-19 22:42:14 +08:00
NanamiAdmin ab2e0567a9 refactor(frpc): replace ini with toml for config handling and improve proxy management
- Replace ini package with toml for more reliable config parsing
- Refactor proxy management to use structured config instead of string manipulation
- Add proper error handling for config operations
- Clean up unused imports and improve code organization
- Update go.mod dependencies accordingly
2026-03-19 22:40:12 +08:00
NanamiAdmin c7fc0136b0 feat(proxy): add proxy deletion API endpoint
Implement handler for deleting frpc proxies with proper validation and error handling. The endpoint checks user permissions, validates input, removes the proxy configuration from the instance file, and returns appropriate responses.
2026-03-19 22:25:00 +08:00
NanamiAdmin cf6e040c49 feat(router): add NotFoundHandler for invalid routes
Add a default handler for invalid routes that logs the request details and returns a 404 response. This improves error handling and user experience by providing clear feedback for invalid paths.
2026-03-19 18:44:48 +08:00
NanamiAdmin 8215c0faee feat(proxy): add proxy management endpoint and proxy creation API
- Implement new endpoint for creating frpc proxy configurations
- Add DBQueryFrpcInstanceByID function to fetch instances by ID
- Move proxy generation logic to separate function in frpcProxyAct.go
- Update API documentation with new proxy creation endpoint
2026-03-19 17:34:31 +08:00
NanamiAdmin 67757be231 refactor(router): remove all useless route
Remove dynamic path handling in favor of explicit route registration
Update README.md with improved table formatting and updated TODO list
2026-03-19 16:50:41 +08:00
NanamiAdmin 702ecb7de4 docs(api): update websocket endpoint and auth requirements 2026-03-17 22:39:55 +08:00
NanamiAdmin 33e5119b0a feat(logging): add real-time log streaming via websocket
- Implement WebSocket endpoint for streaming logs to clients
- Add log broadcaster to manage client connections and history
- Update documentation with new WebSocket API details
- Include gorilla/websocket dependency for WebSocket support
2026-03-17 19:12:15 +08:00
NanamiAdmin 20ec25328d feat(logging): add database logging support and refactor logging system
- Implement new database logging functionality with separate logs database
- Refactor PostLog function to store logs in database while maintaining console output
- Add new InitLogsDatabase function and related database operations
- Update main.go to support separate database paths for data and logs
- Add logging for user creation events
2026-03-17 18:47:51 +08:00
NanamiAdmin 49048597f2 refactor(database): make DBListFrpcInstances able to list all users' frpc instances but not single user
feat(frpcAct): user will get createdBy when query frpc instances on current server
docs(api): update related api documentation
2026-03-12 22:41:17 +08:00
NanamiAdmin f2b07a7732 docs(api): fix some abnormal response templete in API docs 2026-03-10 14:52:18 +08:00
NanamiAdmin f3fca7f07b feat(user): add createdAt field to user model
- Add createdAt field to User struct and database schema
- Update all user queries to include createdAt field
- Document new field in API documentation
- Fix server online status flag timing
2026-03-10 14:34:16 +08:00
NanamiAdmin a142fb17a8 feat(system): add system status and software info endpoints
Add new endpoints to expose system status and software information:
- /system/getStatus returns current system status (online/offline)
- /system/getSoftwareInfo returns software version and build details
Update API documentation to include new endpoints
2026-03-09 19:02:56 +08:00
NanamiAdmin 8b9a757bea feat(session): add session removal endpoint and refactor session management
- Implement new `/sessionMgr/remove` endpoint for superusers to remove sessions
- Refactor session and token management to use sessionTokenMap for better tracking
- Update session cleanup logic to handle both tokens and sessions
- Add documentation for new API endpoint in docs/api.md
- Modify logout handler to use new session removal approach
2026-03-06 19:22:52 +08:00
NanamiAdmin f07b89842a docs(api): update API documentation with new session listing endpoint
feat(session): add API endpoint to list active sessions
2026-03-05 18:29:58 +08:00
NanamiAdmin e400cc1869 feat(session): add session list API
- Move token-related functions from auth.go to new session.go
- Add session tracking with expiration and cleanup
- Implement session list API endpoint
- Update login/logout handlers to use session system
- Add hourly cleanup of expired tokens and sessions
2026-03-05 18:24:19 +08:00
NanamiAdmin efdaefa6f5 docs(LICENSE): update copyright information in LICENSE file 2026-03-04 22:19:28 +08:00
NanamiAdmin 541f881825 feat(windows): add windows boot service support
- Add registry-based boot service creation for Windows
- Update detectInitSystem to handle Windows platform
2026-03-04 22:17:56 +08:00
NanamiAdmin 29011c2fb4 refactor(service): move boot service functions to os.go
Extract service management functions from frpAct.go to new os.go file for better code organization and maintainability. Also update README.md to document supported platforms.
2026-03-04 13:46:55 +08:00
NanamiAdmin 783b06ff94 feat(userMgr): add list users endpoint
Add new endpoint `/userMgr/list` to retrieve all users with superuser permission. Includes handler implementation, database query function, and API documentation update.
2026-03-04 11:20:01 +08:00
NanamiAdmin 8f901dac08 feat(userMgr): add user removal functionality
- Implement RemoveUser function in database.go to delete users
- Add RemoveUserHandler to handle HTTP requests for user removal
- Update API documentation with new /userMgr/remove endpoint
- Add route for user removal in router.go
2026-03-04 11:14:35 +08:00
NanamiAdmin d7260e0cf6 feat(user): add user creation endpoint for superusers
- Add new `/userMgr/create` endpoint for superusers to create users with specified types
- Update AddUser function to accept user type parameter
- Add documentation for the new endpoint in api.md
- Remove debug log comment in auth.go
2026-03-04 11:07:37 +08:00
NanamiAdmin d9c8695f78 docs: add GNU GPL v3 license file 2026-03-03 23:25:53 +08:00
NanamiAdmin 0f3bf18fc1 docs: move API documentation to separate file
Restructure documentation by moving API details from README.md to docs/api.md
Update README.md to reference the new API documentation location
2026-03-03 23:16:40 +08:00
NanamiAdmin 1bfeeff2b3 Merge branch 'main' of https://gitea.nanami.tech/Super-frpc/backend 2026-03-03 23:07:01 +08:00
NanamiAdmin 62917633c4 feat(auth): add logout functionality
- Implement LogoutHandler to handle user logout requests
- Add DeleteTokenInfo and GetUserIDFromToken functions to auth module
- Update README.md with logout endpoint documentation
2026-03-03 23:06:36 +08:00
NanamiAdmin 2aba81eb29 feat(auth): add logout functionality
- Implement LogoutHandler to handle user logout requests
- Add DeleteTokenInfo and GetUserIDFromToken functions to auth module
- Update README.md with logout endpoint documentation
2026-03-03 23:02:52 +08:00
NanamiAdmin 9e6e6f8b19 refactor: reorganize handler files and rename frpc.go to frpAct.go
Move user authentication handlers to userAct.go and frpc instance handlers to frpAct.go
Remove handlers from handlers.go and clean up file structure
2026-03-03 22:43:27 +08:00
NanamiAdmin f5e6120807 feat(frpc): improve boot service error handling and response
- Add bootServiceError field to system config modify response when boot service operations fail
- Include instanceID in list instances response
- Update error message for unknown modify type
- Document bootServiceError behavior in README
2026-03-03 22:31:39 +08:00
NanamiAdmin 1dc0d840b0 feat(instance): refactor modify endpoint to support config types
- Change modify endpoint from `/modify/{field}` to `/modify` with POST
- Add support for two modification types: configFile and systemConfig
- Implement config file parsing using ini package for configFile type
- Update database schema to include name in update query
- Add comprehensive input validation and error handling
- Update documentation to reflect new API changes
2026-03-02 22:43:18 +08:00
NanamiAdmin fc4ad46f6c fix(database): correct time parsing for frpc instance queries
Fix incorrect time parsing when querying frpc instances by properly handling the createdAt string field and converting it to time.Time. Also fix indentation in InitUserDatabase function.
2026-03-02 19:48:00 +08:00
NanamiAdmin 13a401dafe refactor(frpc, database): move all database actions to database.go 2026-03-02 13:32:58 +08:00
NanamiAdmin 9be737ae56 feat: add FrpcProxyInfo struct and logging enhancements
- Introduce FrpcProxyInfo struct to support proxy configuration
- Add logging statements to instance creation, deletion, and modification handlers
- Implement addFrpcProxy function for generating proxy configuration
2026-03-02 13:20:38 +08:00
NanamiAdmin 461f2fc775 temp 2026-02-28 23:00:57 +08:00
NanamiAdmin 686c3dcd4e refactor: consolidate debug flag and update gitignore
- Rename debugMode to isDebug for consistency across codebase
- Move debug flag check in ValidateTimeStamp to match other validations
- Add database.db to gitignore and remove unused config file
- Update README.md to clarify user registration rules
2026-02-28 15:48:01 +08:00
NanamiAdmin b661118180 refactor(auth): move authentication params to headers and simplify validation
- Move token and timestamp validation to HTTP headers
- Simplify ValidateTimeStamp to return boolean
- Update AddUser to use default "visitor" type
- Remove redundant timestamp and token fields from request structs
- Update API documentation to reflect header-based authentication
2026-02-28 15:32:32 +08:00
NanamiAdmin aa70e7c0f0 refactor(api): simplify instance management endpoints
- Change delete endpoint to use request body instead of path parameter
- Modify endpoint now takes field as path parameter and instance name in body
- Update README to reflect API changes
- Remove unused description field from software info
- Fix error message in auth token lookup
2026-02-28 11:55:52 +08:00
NanamiAdmin e3b3a3aa98 feat(logging): add detailed logging throughout application components
- Implement logging in router setup, auth handlers, and frpc operations
- Add SoftwareInfo struct for version tracking and logging
- Enhance error messages with more context and logging
- Replace direct error returns with formatted error logging
- Add debug logs for token operations and request validations
2026-02-27 23:44:41 +08:00
NanamiAdmin 72eb90957c refactor(api): switch to header-based auth for GET requests
- Replace body parsing with header validation for GET endpoints
- Update router to properly handle GET vs POST requests
- Add new ValidateRequestWithHeader function
- Update README to document header requirements
2026-02-27 23:17:18 +08:00
NanamiAdmin af5af2a04f fix(auth): skip timestamp validation in debug mode
Modify ValidateTimeStamp to bypass validation when in debug mode. Also update request validation to make timestamp optional in debug mode while maintaining security checks in production.
2026-02-27 23:13:15 +08:00
NanamiAdmin 1eb9351604 refactor(auth): extract timestamp validation to separate function
Move timestamp validation logic from handlers to ValidateTimeStamp function in auth.go to avoid code duplication and improve maintainability
2026-02-27 21:21:18 +08:00
NanamiAdmin 852f13fa61 refactor(database): move database initialization functions to single file
Consolidate InitFrpcDatabase and InitUserDatabase functions into database.go for better code organization and maintainability. Remove duplicate code from frpc.go.
2026-02-27 21:16:27 +08:00
NanamiAdmin cff81a0423 chore: ignore frp_client binary in gitignore 2026-02-27 21:04:56 +08:00
NanamiAdmin 8f711a3823 feat(handlers): add duplicate login check and improve request handling
refactor: move postLog package to root directory and enhance logging
fix(frpc): improve request parsing and type handling for instance creation
chore: update config paths and enable debug mode
2026-02-27 21:04:08 +08:00
NanamiAdmin 5020d61780 chore: ignore binary files for super-frpc 2026-02-26 11:57:47 +08:00
NanamiAdmin 4e472e0145 refactor(logger): add individual log module 2026-02-26 11:56:35 +08:00
NanamiAdmin d76e28a358 refactor(routor): split routor from main.go 2026-02-26 09:24:33 +08:00
NanamiAdmin 275e08a1a5 refactor(handlers): extract request validation logic to new function
Extract the request validation logic from ValidateRequest into a new ValidateRequestWithBody function to allow passing pre-read request bodies. Update all handler functions to use the new validation function for consistency and to avoid duplicate body reading.
2026-02-23 19:56:16 +08:00
NanamiAdmin 39a4479203 docs: update README with detailed project documentation
Add comprehensive documentation including features, configuration, build/run instructions, API details, user permissions, and security requirements. The README now serves as complete project reference for users and developers.
2026-02-23 19:36:45 +08:00
NanamiAdmin 934190eebf feat: implement core functionality for super-frpc service
This commit introduces the core functionality for the super-frpc service including:
- Configuration management
- User authentication and authorization
- Database integration
- FRPC instance management
- API endpoints for user operations
- Token-based authentication system
- Password hashing and validation
2026-02-23 00:19:57 +08:00