Skip to content

Commit

Permalink
🎨 Rename server into api
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyBlaze committed Jun 18, 2016
1 parent a382a87 commit c01ac93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions octoprint_touchui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# coding=utf-8
from __future__ import absolute_import

from .server import touchui_server
from .api import touchui_api
from .customization import touchui_customization

import octoprint.plugin
import octoprint.settings
import octoprint.util
import os

class touchui_core( touchui_server,
class touchui_core( touchui_api,
touchui_customization,
octoprint.plugin.SettingsPlugin,
octoprint.plugin.AssetPlugin,
Expand Down
3 changes: 1 addition & 2 deletions octoprint_touchui/server.py → octoprint_touchui/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
from octoprint.server.util.flask import restricted_access
from octoprint.server import admin_permission, VERSION

class touchui_server(octoprint.plugin.BlueprintPlugin):
class touchui_api(octoprint.plugin.BlueprintPlugin):

def increase_upload_bodysize(self, current_max_body_sizes, *args, **kwargs):
# set a maximum body size of 1 MB for plugin archive uploads
return [("POST", r"/css", 1 * 1024 * 1024), ("GET", r"/css", 1 * 1024 * 1024)]

@octoprint.plugin.BlueprintPlugin.route("/css", methods=["POST"])
Expand Down

0 comments on commit c01ac93

Please sign in to comment.