source: binary-improvements2/WebServer/src/WebAPI/AbsWebAPI.cs@ 396

Last change on this file since 396 was 391, checked in by alloc, 2 years ago

Major refactoring/cleanup

File size: 318 bytes
Line 
1namespace Webserver.WebAPI {
2 public abstract class AbsWebAPI {
3 public readonly string Name;
4
5 protected AbsWebAPI (string _name = null) {
6 Name = _name ?? GetType ().Name;
7 }
8
9 public abstract void HandleRequest (RequestContext _context);
10
11 public virtual int DefaultPermissionLevel () {
12 return 0;
13 }
14 }
15}
Note: See TracBrowser for help on using the repository browser.